package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
/**
 * 员工管理
 */
public class Employee {
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    private Department dept;
    //角色集合
    private List<Role> roles = new ArrayList<>();

    private boolean status;


    public String getStatusName() {
        if(status){
            return "正常";
        }
        return "禁用";
    }

    public boolean getStatus(){
        return status;
    }
}